package com.netease.nie.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.netease.nie.model.Address;

public interface AddressMapper {

	List<Address> listAddressByUserId(@Param("userId")long userId);
	
	Address listAddressById(@Param("id") long id);
	
	int addAddress(@Param("address") Address address);
	
	int updateAddress(@Param("address") Address address);

	Address listDefaultAddressByUserId(@Param("userId") long userId);

	int deleteAddress(@Param("id") Long id);
	
}
